<%--
  Created by IntelliJ IDEA.
  User: maTengLong
  Date: 2020/3/11
  Time: 16:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    if(request.getAttribute("error") != null){
%>
<h1><%=request.getAttribute("error")%></h1>
<%
    }
    String userName = request.getParameter("userName");
    if(userName == null){
        userName="";
    }
%>
<form action="do_login.jsp" method="post">

    <input type="text" name="userName" placeholder="请输入用户名" value="<%=userName%>"><br>
    <input type="password" name="pwd" placeholder="请输入密码"><br>
    <input type="submit" value="登录">

</form>
</body>
</html>
